package 作业3.CAR;

public class Driver {
    void run(Car car){
        car.run();
    }
    public static void main(String[] args) {
        Driver driver=new Driver ();
        driver.run(new BMW());
        driver.run(new QQ());
        driver.run(new Benz());

    }
}
